<?php

/**
 * TrafficPlayer
 *
 * @package traffic
 * @author e-doceo
 * @copyright 2012
 * @version $Id$
 * @access public
 */
class TrafficPlayer {

	public $name = 'Toi';

	public $cart = array();

	public $agenda;

	public $euros = 130;

	public $nb_early_rdv, $nb_late_rdv = 0;

	public $nb_call_mother, $nb_call = 0;

	public $nb_drug_sell = array(1=>'0', 2=>'0', 3=>'0', 4=>'0');
	public $nb_drug_buy = array(1=>'0', 2=>'0', 3=>'0', 4=>'0');

	public $nb_rdv_ok_dealer, $nb_rdv_ok_client = 0;

	/**
	 * TrafficPlayer::__construct()
	 *
	 * @return
	 */
	public function __construct() {

		$this->cart = array(
			TrafficDrugUtils::SHIT => 15,
			TrafficDrugUtils::BEUH => 0,
			TrafficDrugUtils::COKE => 0,
			TrafficDrugUtils::HERO => 0
		);

		$this->agenda = new TrafficAgenda();
	}

	/**
	 * TrafficPlayer::addToCart()
	 *
	 * @param mixed $type
	 * @param mixed $quantity
	 * @return
	 */
	public function addToCart($type, $quantity) {
		$this->cart[$type] += $quantity;
	}
}
?>